﻿using System;
namespace PS.Model
{
	/// <summary>
	/// 公共资源借出记录表

	/// </summary>
	[Serializable]
	public partial class RepResourceLoan
	{
		public RepResourceLoan()
		{}
		#region Model
		private int _represourceloanid;
		private int? _represourcemangid;
		private int? _usedepid;
		private string _uselocation;
		private string _usepurpose;
		private string _relationcall;
		private DateTime? _loandatetime= DateTime.Now;
		private int? _operator;
		private string _applyuser;
		private DateTime? _billingdatetime= DateTime.Now;
        private DateTime? _planrevertdate = null;
		private DateTime? _revertdate= null;
		private string _resourcestatus;
		private string _driver;
		private int? _editor;
		private DateTime? _edittime= DateTime.Now;
		private int? _validmark=1;
		private string _spare1;
		private string _spare2;
		private string _spare3;
		private string _spare4;

        private int? _reverter;
        private string _loanNumber;
		/// <summary>
		/// RepResourceLoanID
		/// </summary>
		public int RepResourceLoanID
		{
			set{ _represourceloanid=value;}
			get{return _represourceloanid;}
		}
		/// <summary>
		/// 资源ID:对应RepResourceMang表中的自增字段

		/// </summary>
		public int? RepResourceMangID
		{
			set{ _represourcemangid=value;}
			get{return _represourcemangid;}
		}
		/// <summary>
		/// 使用单位   部门表中的自增ID
		/// </summary>
		public int? UseDepID
		{
			set{ _usedepid=value;}
			get{return _usedepid;}
		}
		/// <summary>
		/// 使用地点
		/// </summary>
		public string UseLocation
		{
			set{ _uselocation=value;}
			get{return _uselocation;}
		}
		/// <summary>
		/// 使用目地
		/// </summary>
		public string UsePurpose
		{
			set{ _usepurpose=value;}
			get{return _usepurpose;}
		}
		/// <summary>
		/// 联系电话
		/// </summary>
		public string RelationCall
		{
			set{ _relationcall=value;}
			get{return _relationcall;}
		}
		/// <summary>
		/// 借出时间
		/// </summary>
		public DateTime? LoanDateTime
		{
			set{ _loandatetime=value;}
			get{return _loandatetime;}
		}
		/// <summary>
		/// 调度人：当前操作用户ID
		/// </summary>
		public int? Operator
		{
			set{ _operator=value;}
			get{return _operator;}
		}
		/// <summary>
		/// 申请人

		/// </summary>
		public string ApplyUser
		{
			set{ _applyuser=value;}
			get{return _applyuser;}
		}
		/// <summary>
		/// 开单时间

		/// </summary>
		public DateTime? BillingDateTime
		{
			set{ _billingdatetime=value;}
			get{return _billingdatetime;}
		}
		/// <summary>
		/// 预计归还时间
		/// </summary>
		public DateTime? PlanRevertDate
		{
			set{ _planrevertdate=value;}
			get{return _planrevertdate;}
		}
		/// <summary>
		/// 归还时间
		/// </summary>
		public DateTime? RevertDate
		{
			set{ _revertdate=value;}
			get{return _revertdate;}
		}
		/// <summary>
		/// 资源状态：备用、在用、修理

		/// </summary>
		public string ResourceStatus
		{
			set{ _resourcestatus=value;}
			get{return _resourcestatus;}
		}
		/// <summary>
		/// 随车司机
		/// </summary>
		public string Driver
		{
			set{ _driver=value;}
			get{return _driver;}
		}
		/// <summary>
		/// 修改人   关联用户表：UserID
		/// </summary>
		public int? Editor
		{
			set{ _editor=value;}
			get{return _editor;}
		}
		/// <summary>
		/// 修改时间
		/// </summary>
		public DateTime? EditTime
		{
			set{ _edittime=value;}
			get{return _edittime;}
		}
		/// <summary>
		/// 是否有效(0:无效，1：有效。默认为1)
		/// </summary>
		public int? ValidMark
		{
			set{ _validmark=value;}
			get{return _validmark;}
		}
		/// <summary>
		/// 扩展字段1
		/// </summary>
		public string Spare1
		{
			set{ _spare1=value;}
			get{return _spare1;}
		}
		/// <summary>
		/// 扩展字段2
		/// </summary>
		public string Spare2
		{
			set{ _spare2=value;}
			get{return _spare2;}
		}
		/// <summary>
		/// 扩展字段3
		/// </summary>
		public string Spare3
		{
			set{ _spare3=value;}
			get{return _spare3;}
		}
		/// <summary>
		/// 扩展字段4
		/// </summary>
		public string Spare4
		{
			set{ _spare4=value;}
			get{return _spare4;}
		}

        /// <summary>
        /// 归还人
        /// </summary>
        public int? Reverter
        {
            get { return _reverter; }
            set { _reverter = value; }
        }

        /// <summary>
        /// 借单号
        /// </summary>
        public string LoanNumber
        {
            get { return _loanNumber; }
            set { _loanNumber = value; }
        }
		#endregion Model

	}
}

